using System.Web;

namespace MvpFramework
{
    /// <summary>
    /// The Current HTTP Context
    /// </summary>
    public class CurrentHttpContext:IHttpResponse
    {
        public CurrentHttpContext()
        {
            Context = HttpContext.Current;
        }
        /// <summary>
        /// 
        /// </summary>
        public HttpContext Context { get; private set; }
        /// <summary>
        /// The Current Response
        /// </summary>
        public HttpResponse Response
        {
            get
            {
                return Context.Response;
            }
        }
       /// <summary>
        /// Redirects
        /// </summary>
        /// <param name="location"></param>
        public void Redirect(string location)
        {
            Response.Redirect(location);
        }
    }
}